<?php

namespace Database\Seeders;

use App\Models\Carousel;
use Illuminate\Database\Seeder;

class CarouselSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $data = [
            [
                'title' => '党课',
                'image' => 'https://sfmsb.jxbmg.com/files/202209/rgtWE4i2V3OJ2A8Ht5ybIgnoRUMOwnyhBaZUcalV.jpg'
            ], [
                'title' => '课件',
                'image' => 'https://sfmsb.jxbmg.com/files/202209/6l4UF4r1ayTk7nGZG7n5jOdDF0dSKmd3g2YrNIia.jpg'
            ], [
                'title' => '功勋',
                'image' => 'https://sfmsb.jxbmg.com/files/202209/459voyySE420Psv5aNuAQ62i3VzpnC9c9lRWdomE.jpg'
            ]
        ];
        foreach ($data as $key => $value) {
            Carousel::create($value);
        }
    }
}
